<?php
Zend_Loader::loadClass("Application_Widget");
/**
 * Parent class for application Pages
 *
 * The Page class defines common attributes and methods for Pages.
 * The Page class cannot be used directly
 *
 * @category   library
 * @package    Application_Page
 * @copyright  Copyright (c) 2011-2012 Università degli studi di Roma Tor Vergata
 * @license    modified BSD License
 * @author     Mauro Maggi <mauro.maggi@hotmail.it>
 */

abstract class Application_Page extends Application_Widget
{
	/*
	public function __construct() {
		$this->_init();
	}

	protected function _init() {
		$stack = explode("_", strtolower(get_class($this)));
		$layer = "";
		foreach ($stack as $s) {
			$layer .= $s;
			// Javascript
			if (file_exists(PUBLIC_HTML_PATH . DS . 'js' . DS . $layer . DS . 'default.js')) {
				Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view->JQuery()->addJavascriptFile('/js/' . str_replace(DS,'/',$layer) . '/' . 'default.js');
			}
			// Css
			if (file_exists(PUBLIC_HTML_PATH . DS . 'css' . DS . $layer . DS . 'default.css')) {
				Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view->JQuery()->addStylesheet('/css/' . str_replace(DS,'/',$layer) . '/' . 'default.css');
			}
			$layer .= DS;
		}
	}
	*/
	
	/*abstract public function run();*/
}
